package com.xinchuang.controller.targetSystem.damage;

import com.xinchuang.common.Result;
import com.xinchuang.service.targetSystem.damage.DamageService;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO
 *
 * @author zkwczx
 * @version 1.0
 * @date 2024/5/17 19:25
 */
@RestController
@RequiredArgsConstructor
@RequestMapping(value = "/damage")
public class DamageController {

    private final DamageService damageService;

    @ApiOperation(value = "获取子目标类型下拉")
    @GetMapping(value = "/getSubTypePull")
    public Result getSubTypePull(@RequestParam(value = "typeId") String typeId) {
        return damageService.getSubTypePull(typeId);
    }

}
